home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Erotic Games: Memory
/
Erotic Games: Memory.iso
/
mac
/
air_installers
/
AdobeAIR.exe
/
setup.swf
/
scripts
/
skins
/
SimpleScrollArrowSkin.as
next >
Wrap
Text File
|
2009-02-12
|
2KB
|
71 lines
package skins
{
import mx.controls.scrollClasses.ScrollBar;
import mx.skins.Border;
public class SimpleScrollArrowSkin extends Border
{
public function SimpleScrollArrowSkin()
{
super();
}
override public function get measuredWidth() : Number
{
return ScrollBar.THICKNESS;
}
override public function get measuredHeight() : Number
{
return ScrollBar.THICKNESS;
}
override protected function updateDisplayList(param1:Number, param2:Number) : void
{
super.updateDisplayList(param1,param2);
var _loc3_:uint = getStyle("arrowBorderColor");
var _loc4_:uint = getStyle("arrowFillColor");
var _loc5_:uint = getStyle("arrowOverFillColor");
var _loc6_:uint = getStyle("arrowIconColor");
var _loc7_:* = name.charAt(0) == "u";
graphics.clear();
switch(name)
{
case "upArrowUpSkin":
case "downArrowUpSkin":
drawRoundRect(1,1,param1 - 1,param2 - 1,0,_loc3_,1);
drawRoundRect(2,2,param1 - 3,param2 - 3,0,_loc4_,1);
break;
case "upArrowOverSkin":
case "upArrowDownSkin":
case "downArrowDownSkin":
case "downArrowOverSkin":
drawRoundRect(1,1,param1 - 1,param2 - 1,0,_loc3_,1);
drawRoundRect(2,2,param1 - 3,param2 - 3,0,_loc5_,1);
break;
default:
drawRoundRect(0,0,param1,param2,0,_loc4_,0);
return;
}
graphics.beginFill(_loc6_);
if(_loc7_)
{
graphics.moveTo(param1 / 2,6);
graphics.lineTo(param1 - 5,param2 - 6);
graphics.lineTo(5,param2 - 6);
graphics.lineTo(param1 / 2,6);
}
else
{
graphics.moveTo(param1 / 2,param2 - 6);
graphics.lineTo(param1 - 5,6);
graphics.lineTo(5,6);
graphics.lineTo(param1 / 2,param2 - 6);
}
graphics.endFill();
}
}
}